package cn.psvmc.cxzapi.mapper.store;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.customer.TCustomerCoupon;
import cn.psvmc.cxzapi.model.store.TCouponCustomer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 优惠券用户表 Mapper 接口
 * @Author auto
 * @Date 2024-08-19
 */
public interface TCouponCustomerMapper extends MyBaseMapper<TCouponCustomer> {
    //客户是否有权限领券
    Integer getNumById(@Param("cc") TCustomerCoupon tCustomerCoupon);

    //根据优惠券id查询优惠券用户列表
    List<Map> listByCouponId(@Param("couponid") Integer couponid);
}
